const Mock = require('mockjs')
// const Random = Mock.Random

Mock.setup({
    timeout: 100
})

const login = () => {
    return Mock.mock({
        "account":"jn-scjdglj001",
        "code":"0",
        "companyId":50,
        "companyName":"济南市",
        "message":"success",
        "token":"jn-scjdglj001|m+jYaNJDz31wi+q3FH1LN7DErhyUw9PLpY2Vt5GtS3GJSpna9tmHYlwvwQ1MBjJZVEiygdKeVKLP\r\nt/GTyfpaeVB/1FKqLQRGXrBrISN5+qd2by3IWazx2oe+r+VCORzP9V5n7UwtwWQb/0Hkx+5+/Jwh\r\nHST4Vx9vyMivCcnBVvccXdTaZ+kxtQkL+1QR/S/jtIv6kEpqTHDAo5CTvDurDCV4p5/SWSdPi+Xv\r\nMt4WfFLv/eXcciMEv9Yr3fpg0FIlEgU0w0Ya8+4qu+ZCRy2di5tVT1Or1FVBrS+9JiKahutRXhDF\r\nERH8+1qJnFL9pT33qzZemK7WQFmp0R2qYVupTZ/wezwrUtgasLDHzWjG6aboOoCWGoIzSLWGNVYS\r\nlx3B658TNemJ5I4BnxbY3nziNT2C/pcTvRykkkHSieITqdetijnjFDjviorZG6W4y2oKgOHJxv2T\r\nX6bE6A+YrAe0F7MzCelJAfoeAXy4UzrWv+Y/ha1eLy99dAnLF4hQA+arflFyNTq3OPAkYrHWrLmh\r\nqqFPFzyu95vHGy+CK6EFcA31qMiiF1qIhBt6SiBrNdcTza54L/RbA/RgrmjlgSh46XPQtkVbeNng\r\n3LNJr6BViAHmSQYfBt0jjsa8h8MH66GayvazTlTIXdx6Kdyo5WInOixb4u/cUEaelIVajoONjRMK\r\nC7DNQanEcRPN+TSjleHjuvyPIq7w/wQTN5TO7W74A2i4609+yubp+97PhNgnrsU=|728619dd2aa14648de5c0c984c82091f1858683c",
        "userId":192,
        "userName":"测试专员3",
        "versn":"1.0"
    })
}
const logout = () => {
    return Mock.mock({
        "code":"0",
        "data":true,
        "message":"success",
        "versn":"1.0"
    })
}

const me = () => {
    return Mock.mock({
        "code":"0",
        "data":{
            "account":"jn-scjdglj001",
            "admin":false,
            "code":"1#48#49#50#815-816-192@",
            "companyId":50,
            "companyName":"济南市市场监督管理局",
            "createTime":"2021-01-11 16:44:10",
            "ddStatus":0,
            "dorg":"",
            "dyType":0,
            "govCode":"",
            "id":192,
            "idCard":"",
            "job":"",
            "jobPosition":"",
            "level":0,
            "mobile":"",
            "name":"测试专员3",
            "nickName":"",
            "orgFullName":"济南市市场监督管理局取证鉴定中心",
            "orgId":816,
            "orgName":"取证鉴定中心",
            "parentClass":"YwDepartment",
            "parentId":816,
            "rdDate":"2021-01-11",
            "remark":"",
            "roleEnabled":false,
            "rootDepartmentId":815,
            "sex":"M",
            "sms":0,
            "sort":0,
            "status":0,
            "topParent":false,
            "type":1,
            "updateTime":"2021-01-11 16:44:10",
            "userType":"Yw",
            "uuid":"0a24a640ff7e49adbca27a92c1b22816",
            "valid":true
        },
        "message":"success",
        "versn":"1.0"
    })
}

const forensicsPage = () => {
    return Mock.mock({
        "code":"0",
        "data":{
            "data":[
                {
                    "content":"测试取证内容情况摘要",
                    "createTime":"2021-01-07 18:30:34",
                    "deptId":2,
                    "deptName":"测试部门",
                    "id":1,
                    "ident":"123",
                    "illegalType":1001,
                    "method":1,
                    "name":"测试取证内容123",
                    "orgId":1,
                    "orgName":"测试机构",
                    "remark":"12312",
                    "status":0,
                    "timeSetting":1,
                    "type":20,
                    "updateTime":"2021-01-08 14:22:04",
                    "userId":3,
                    "userName":"测试取证人员",
                    "uuid":"e88da34ecca7459b9112e05be06dbaa1",
                    "valid":true,
                    "way":1
                },
                {
                    "content":"123123",
                    "createTime":"2021-01-08 15:32:01",
                    "deptId":123123,
                    "deptName":"123123",
                    "evidenceId":"2021010812661957",
                    "id":19,
                    "ident":"123123123",
                    "illegalType":1001,
                    "method":1,
                    "name":"23123123",
                    "orgId":123123,
                    "orgName":"123123",
                    "remark":"123123",
                    "status":0,
                    "timeSetting":1,
                    "updateTime":"2021-01-08 15:32:02",
                    "userId":11,
                    "userName":"123123",
                    "uuid":"4e436bba58d34774b7b8fae3d3480975",
                    "valid":true,
                    "way":1
                }
            ],
            "distinct":false,
            "draw":0,
            "groupOp":"AND",
            "lastPage":true,
            "length":20,
            "mapUnderscoreToCamelCase":false,
            "pageNum":1,
            "recordsFiltered":2,
            "recordsTotal":2,
            "rules":[
                {
                    "compareValue":true,
                    "field":"isForensics",
                    "op":"eq",
                    "operater":"=",
                    "value":true
                }
            ],
            "start":0
        },
        "message":"success",
        "versn":"1.0"
    })
}

const forensicsDict = () => {
    return Mock.mock({
        "code":"0",
        "data":[
            {
                "dicts":[
                    {
                        "createTime":"2021-01-09 20:24:01",
                        "govCode":"1",
                        "level":0,
                        "name":"网页取证",
                        "sort":0,
                        "status":0,
                        "topParent":true,
                        "type":0,
                        "uuid":"4df203ad3e614c759522a11a05b116b4",
                        "valid":true
                    },
                    {
                        "createTime":"2021-01-09 20:24:01",
                        "govCode":"2",
                        "level":0,
                        "name":"录屏取证",
                        "sort":0,
                        "status":0,
                        "topParent":true,
                        "type":0,
                        "uuid":"a4f8845b1a8345079e26fe831f1ae535",
                        "valid":true
                    },
                    {
                        "createTime":"2021-01-09 20:24:01",
                        "govCode":"3",
                        "level":0,
                        "name":"数据保全",
                        "sort":0,
                        "status":0,
                        "topParent":true,
                        "type":0,
                        "uuid":"5f79d4430be74b0a9d9cb9bfdff20601",
                        "valid":true
                    },
                    {
                        "createTime":"2021-01-09 20:24:01",
                        "govCode":"4",
                        "level":0,
                        "name":"手机取证",
                        "sort":0,
                        "status":0,
                        "topParent":true,
                        "type":0,
                        "uuid":"67c950be795a48bea3b9a529a90844c6",
                        "valid":true
                    }
                ],
                "key":"method"
            },
            {
                "dicts":[
                    {
                        "createTime":"2021-01-07 14:54:15",
                        "govCode":"1001",
                        "id":1,
                        "level":0,
                        "name":"虚假宣传",
                        "parentId":2,
                        "sort":0,
                        "status":0,
                        "topParent":false,
                        "topTypeId":1,
                        "type":0,
                        "updateTime":"2021-01-07 14:54:15",
                        "uuid":"fb25aa8eb1c04ddb82ab9a446c8d8299",
                        "valid":true
                    }
                ],
                "key":"illegalType"
            },
            {
                "dicts":[
                    {
                        "createTime":"2021-01-09 20:24:02",
                        "govCode":"20",
                        "level":0,
                        "name":"文档",
                        "sort":0,
                        "status":0,
                        "topParent":true,
                        "type":0,
                        "uuid":"e50f627d2b1e4b0fa7b052e91a352299",
                        "valid":true
                    },
                    {
                        "createTime":"2021-01-09 20:24:02",
                        "govCode":"21",
                        "level":0,
                        "name":"图片",
                        "sort":0,
                        "status":0,
                        "topParent":true,
                        "type":0,
                        "uuid":"c30739ca7cdb4f76a757ddaf4f1f7746",
                        "valid":true
                    },
                    {
                        "createTime":"2021-01-09 20:24:02",
                        "govCode":"22",
                        "level":0,
                        "name":"视频",
                        "sort":0,
                        "status":0,
                        "topParent":true,
                        "type":0,
                        "uuid":"aeb0f4a5b1224a1db699caa1b68d4b2c",
                        "valid":true
                    },
                    {
                        "createTime":"2021-01-09 20:24:02",
                        "govCode":"23",
                        "level":0,
                        "name":"音频",
                        "sort":0,
                        "status":0,
                        "topParent":true,
                        "type":0,
                        "uuid":"3fa1c28811f14853acb952ddecd3c799",
                        "valid":true
                    },
                    {
                        "createTime":"2021-01-09 20:24:02",
                        "govCode":"24",
                        "level":0,
                        "name":"其他保全",
                        "sort":0,
                        "status":0,
                        "topParent":true,
                        "type":0,
                        "uuid":"43d3813803664e1a8ca6f61ca7d4b26f",
                        "valid":true
                    }
                ],
                "key":"type"
            },
            {
                "dicts":[
                    {
                        "createTime":"2021-01-09 20:24:02",
                        "govCode":"0",
                        "level":0,
                        "name":"开始",
                        "sort":0,
                        "status":0,
                        "topParent":true,
                        "type":0,
                        "uuid":"5ee51d364be943e890582a600026166c",
                        "valid":true
                    },
                    {
                        "createTime":"2021-01-09 20:24:02",
                        "govCode":"1",
                        "level":0,
                        "name":"取证中",
                        "sort":0,
                        "status":0,
                        "topParent":true,
                        "type":0,
                        "uuid":"69a68687717949d78d2d9f249ec72a6c",
                        "valid":true
                    },
                    {
                        "createTime":"2021-01-09 20:24:02",
                        "govCode":"3",
                        "level":0,
                        "name":"哈希上链",
                        "sort":0,
                        "status":0,
                        "topParent":true,
                        "type":0,
                        "uuid":"473317c6db8246efb2d02d96cc57a7eb",
                        "valid":true
                    },
                    {
                        "createTime":"2021-01-09 20:24:02",
                        "govCode":"4",
                        "level":0,
                        "name":"完成固证",
                        "sort":0,
                        "status":0,
                        "topParent":true,
                        "type":0,
                        "uuid":"9eb6fabe91b04de791279330d881976e",
                        "valid":true
                    },
                    {
                        "createTime":"2021-01-09 20:24:02",
                        "govCode":"5",
                        "level":0,
                        "name":"固证失败",
                        "sort":0,
                        "status":0,
                        "topParent":true,
                        "type":0,
                        "uuid":"8d9d497a95014016b8573b6b8b3ccd56",
                        "valid":true
                    }
                ],
                "key":"inspectPoint"
            }
        ],
        "message":"success",
        "versn":"1.0"
    })
}
const forensicsFetch = () => {
    return Mock.mock({
        "code":"0",
        "data":{
            "content":"测试取证内容情况摘要",
            "createTime":"2021-01-07 18:30:34",
            "deptId":2,
            "deptName":"测试部门",
            "id":31,
            "ident":"123",
            "illegalType":1001,
            "items":[
                {
                    "createTime":"2021-01-08 11:36:48",
                    "forensicsId":1,
                    "id":1,
                    "remark":"12312",
                    "status":0,
                    "state":0,
                    "updateTime":"2021-01-08 14:22:04",
                    "uuid":"5ca95e1808ec4736a9694366ea3230ae",
                    "valid":true,
                    "webUrl":"http://www.baidu.com"
                },{
                    "createTime":"2021-01-08 11:36:48",
                    "forensicsId":1,
                    "id":1,
                    "remark":"12312",
                    "status":0,
                    "state":0,
                    "updateTime":"2021-01-08 14:22:04",
                    "uuid":"5ca95e1808ec4736a9694366ea3230ae",
                    "valid":true,
                    "webUrl":"http://www.google.com"
                }
            ],
            "mans":[
                {
                    "createTime":"2021-01-08 11:36:48",
                    "forensicsId":1,
                    "id":1,
                    "status":0,
                    "updateTime":"2021-01-08 14:22:04",
                    "uuid":"5ca95e1808ec4736a9694366ea3230ad",
                    "valid":true,
                    "userName":"张三",
                    "ident":"12312",
                }],
            "method":1,
            "name":"测试取证内容",
            "orgId":1,
            "orgName":"测试机构",
            "remark":"12312",
            "status":0,
            "timeSetting":1,
            "type":20,
            "updateTime":"2021-01-08 14:22:04",
            "userId":3,
            "userName":"测试取证人员",
            "uuid":"d15e8b924bb84249b62850970875c4b9",
            "valid":true,
            "way":1
        },
        "message":"success",
        "versn":"1.0"
    })
}

const authorizationPage = () => {
    return Mock.mock(
        {
            "code":"0",
            "data":{
                "data":[
                    {
                        "children":[],
                        "createTime":"2021-01-10 21:47:26",
                        "deptId":2,
                        "deptName":"测试部门",
                        "id":2,
                        "ident":"456",
                        "items":[],
                        "mans":[],
                        "orgId":1,
                        "orgName":"测试机构",
                        "originId":1,
                        "parent":{
                            "content":"测试取证内容情况摘要",
                            "createTime":"2021-01-07 18:30:34",
                            "deptId":2,
                            "deptName":"测试部门",
                            "id":1,
                            "ident":"123",
                            "illegalType":1001,
                            "method":1,
                            "name":"测试取证内容",
                            "orgId":1,
                            "orgName":"测试机构",
                            "remark":"12312",
                            "status":0,
                            "timeSetting":1,
                            "type":20,
                            "updateTime":"2021-01-08 14:22:04",
                            "userId":3,
                            "userName":"测试取证人员",
                            "uuid":"e88da34ecca7459b9112e05be06dbaa1",
                            "valid":true,
                            "way":1
                        },
                        "receiveState":0,
                        "status":0,
                        "updateTime":"2021-01-10 21:47:28",
                        "userId":3,
                        "userName":"测试取证人员1",
                        "uuid":"2",
                        "valid":true
                    }
                ],
                "distinct":false,
                "draw":0,
                "groupOp":"AND",
                "lastPage":true,
                "length":10,
                "mapUnderscoreToCamelCase":false,
                "orderby":{
                    "order":"desc",
                    "orderBySetted":true,
                    "orderDir":"desc",
                    "orderField":"id",
                    "orderby":"id"
                },
                "pageNum":1,
                "recordsFiltered":1,
                "recordsTotal":1,
                "start":0
            },
            "message":"success",
            "versn":"1.0"
        }
    )
}

const evidenceReportPage = () => {
    return Mock.mock({
        "code":"0",
        "data":{
            "data":[
                {
                    "createTime":"2021-01-07 19:38:05",
                    "deptId":1,
                    "deptName":"中国",
                    "forensicsId":1,
                    "id":1,
                    "orgId":1,
                    "orgName":"中国",
                    "parent":{
                        "content":"测试取证内容情况摘要",
                        "createTime":"2021-01-07 18:30:34",
                        "deptId":2,
                        "deptName":"测试部门",
                        "id":1,
                        "ident":"123",
                        "illegalType":1001,
                        "method":1,
                        "name":"测试取证内容",
                        "orgId":1,
                        "orgName":"测试机构",
                        "remark":"12312",
                        "status":0,
                        "timeSetting":1,
                        "type":20,
                        "updateTime":"2021-01-08 14:22:04",
                        "userId":3,
                        "userName":"测试取证人员",
                        "uuid":"e88da34ecca7459b9112e05be06dbaa1",
                        "valid":true,
                        "way":1
                    },
                    "state":0,
                    "status":0,
                    "updateTime":"2021-01-07 19:38:05",
                    "userId":1,
                    "userName":"SA",
                    "uuid":"d7695f64dd5249b2b5adafcbfedb1ee1",
                    "valid":true
                }
            ],
            "distinct":false,
            "draw":0,
            "groupOp":"AND",
            "lastPage":true,
            "length":10,
            "mapUnderscoreToCamelCase":false,
            "orderby":{
                "order":"desc",
                "orderBySetted":true,
                "orderDir":"desc",
                "orderField":"id",
                "orderby":"id"
            },
            "pageNum":1,
            "recordsFiltered":1,
            "recordsTotal":1,
            "start":0
        },
        "message":"success",
        "versn":"1.0"
    })
}

const forensicsSave = () => {
    return Mock.mock({
        "code":"0",
        "data":{
            "content":"测试取证内容情况摘要",
            "createTime":"2021-01-07 18:30:34",
            "deptId":2,
            "deptName":"测试部门",
            "id":31,
            "ident":"123",
            "illegalType":1001,
            "items":[
                {
                    "createTime":"2021-01-08 11:36:48",
                    "forensicsId":1,
                    "id":1,
                    "remark":"12312",
                    "status":0,
                    "updateTime":"2021-01-08 14:22:04",
                    "uuid":"5ca95e1808ec4736a9694366ea3230ad",
                    "valid":true,
                    "webUrl":"http://www.baidu.com"
                }
            ],
            "mans":[],
            "method":1,
            "name":"测试取证内容",
            "orgId":1,
            "orgName":"测试机构",
            "remark":"12312",
            "status":0,
            "timeSetting":1,
            "type":20,
            "updateTime":"2021-01-08 14:22:04",
            "userId":3,
            "userName":"测试取证人员",
            "uuid":"d15e8b924bb84249b62850970875c4b9",
            "valid":true,
            "way":1
        },
        "message":"success",
        "versn":"1.0"
    })
}

const delOneUrl = () => {
    return Mock.mock({
        "code":"0",
        "message":"success",
        "versn":"1.0"
    })
}

const questonList = () => {
    return Mock.mock({
        "code":"0",
        "data|10":[
            {
                "answerList":[
                    {
                        "answerContent":"测试回答1213123",
                        "answerTime":"2021-01-07 16:34:17",
                        "answerer":"SA",
                        "answererId":1,
                        "createTime":"2021-01-07 16:34:17",
                        "id":5,
                        "questionId":1,
                        "status":0,
                        "updateTime":"2021-01-07 17:07:05",
                        "uuid":"155b625d68694da385cbdc916ce2a7c2",
                        "valid":true,
                        "dept":"中国"
                    }
                ],
                "content":"测试搜123人去热饭去我",
                "createTime":"2021-01-07 15:47:21",
                "id":1,
                "questionTime":"2021-01-07 16:15:13",
                "questioner":"SA",
                "questionerId":1,
                "status":0,
                "title":"测试问题",
                "updateTime":"2021-01-07 17:32:02",
                "uuid":"1bcbf93dd447445a8b0960a634880364",
                "valid":true,
                "dept":"中国"
            }
        ],
        "message":"success",
        "versn":"1.0"
    })
}
const questionPage = () =>{
    return Mock.mock({
        "code":"0",
        "data":{
            "data":[
                {
                    "answerList":[
                        {
                            "answerContent":"测试回答1213123",
                            "answerTime":"2021-01-07 16:34:17",
                            "answerer":"SA",
                            "answererId":1,
                            "createTime":"2021-01-07 16:34:17",
                            "dept":"中国",
                            "deptId":1,
                            "id":5,
                            "questionId":1,
                            "status":0,
                            "updateTime":"2021-01-07 17:07:05",
                            "uuid":"155b625d68694da385cbdc916ce2a7c2",
                            "valid":true
                        }
                    ],
                    "content":"测试搜123人去热饭去我",
                    "createTime":"2021-01-07 15:47:21",
                    "dept":"中国",
                    "deptId":1,
                    "id":1,
                    "questionTime":"2021-01-07 16:15:13",
                    "questioner":"SA",
                    "questionerId":1,
                    "status":0,
                    "title":"测试问题",
                    "updateTime":"2021-01-07 17:32:02",
                    "uuid":"1bcbf93dd447445a8b0960a634880364",
                    "valid":true
                },
                {
                    "answerList":[],
                    "content":"12313123",
                    "createTime":"2021-01-08 10:24:05",
                    "dept":"中国",
                    "deptId":1,
                    "id":2,
                    "questionTime":"2021-01-08 10:24:05",
                    "questioner":"SA",
                    "questionerId":1,
                    "status":0,
                    "title":"测试1",
                    "updateTime":"2021-01-08 10:26:00",
                    "uuid":"dcb22f6ba17745f297396bcc32eef2d6",
                    "valid":true
                },
            ],
            "distinct":false,
            "draw":0,
            "groupOp":"AND",
            "lastPage":true,
            "length":20,
            "mapUnderscoreToCamelCase":false,
            "pageNum":1,
            "recordsFiltered":6,
            "recordsTotal":6,
            "start":0
        },
        "message":"success",
        "versn":"1.0"
    })
}
const questionSave = () =>{
    return Mock.mock({
        "code":"0",
        "data":{
            "answerList":[],
            "content":"33",
            "createTime":"2021-01-11 17:15:15",
            "id":15,
            "questionTime":"2021-01-11 17:15:15",
            "questioner":"SA",
            "questionerId":1,
            "status":0,
            "title":"123123",
            "updateTime":"2021-01-11 17:15:15",
            "uuid":"88397b459b4c4880b04dde8153747e3c",
            "valid":true
        },
        "message":"success",
        "versn":"1.0"
    })
}
const questionDetail = () =>{
    return Mock.mock({
        "code":"0",
        "data":{
            "answerList":[
                {
                    "answerContent":"测试回答",
                    "answerTime":"2021-01-07 16:29:43",
                    "answerer":"SA",
                    "answererId":1,
                    "createTime":"2021-01-07 16:29:43",
                    "dept":"中国",
                    "deptId":1,
                    "id":3,
                    "questionId":1,
                    "status":0,
                    "updateTime":"2021-01-07 16:29:43",
                    "uuid":"1a5bcaefd623400e907f014bda0c6518",
                    "valid":true
                }
            ],
            "content":"测试搜123人去热饭去我",
            "createTime":"2021-01-07 15:47:21",
            "dept":"中国",
            "deptId":1,
            "id":1,
            "questionTime":"2021-01-07 16:15:13",
            "questioner":"SA",
            "questionerId":1,
            "status":0,
            "title":"测试问题",
            "updateTime":"2021-01-07 17:32:02",
            "uuid":"1bcbf93dd447445a8b0960a634880364",
            "valid":true
        },
        "message":"success",
        "versn":"1.0"
    })
}

const learningFieldPage = () => {
    return Mock.mock({
        "code":"0",
        "data":{
            "data|10":[
                {
                    "content": "<p>测试取证内容情况摘要</p>",
                    "createTime": "2021-01-08 16:41:42",
                    "type": 2002,
                    "status": 0,
                    "title": "测试",
                    "id": 1,
                    "clickVolume": 20,
                    "updateTime": "2021-01-08 16:50:07",
                    "picUrl": "https://ss3.bdstatic.com/70cFv8Sh_Q1YnxGkpoWK1HF6hhy/it/u=1092625551,3794324668&fm=26&gp=0.jpg",
                    "contentText": "测试取证内容情况摘要",
                    "uuid": "e1725b256efd477690b1c6ef25fde8b7",
                    "valid": true
                  }
            ],
            "distinct":false,
            "draw":0,
            "groupOp":"AND",
            "lastPage":true,
            "length":20,
            "mapUnderscoreToCamelCase":false,
            "pageNum":1,
            "recordsFiltered":2,
            "recordsTotal":2,
            "rules":[
                {
                    "compareValue":true,
                    "field":"isForensics",
                    "op":"eq",
                    "operater":"=",
                    "value":true
                }
            ],
            "start":0
        },
        "message":"success",
        "versn":"1.0"
    })
}

const learningFieldDict = () => {
    return Mock.mock({
        "code":"0",
        "data":[
            {
                "dicts": [
                    {
                      "createTime": "2021-01-08 16:11:24",
                      "govCode": "2001",
                      "id": 3,
                      "level": 0,
                      "name": "新闻资讯",
                      "parentId": 5,
                      "sort": 1,
                      "status": 0,
                      "topParent": false,
                      "topTypeId": 4,
                      "updateTime": "2021-01-08 16:11:24",
                      "uuid": "4d3550a21aaa4bd1957e07ff1cf62463",
                      "valid": true
                    },
                    {
                        "createTime": "2021-01-08 16:11:44",
                        "govCode": "2002",
                        "id": 4,
                        "level": 0,
                        "name": "专业技术",
                        "parentId": 5,
                        "sort": 2,
                        "status": 0,
                        "topParent": false,
                        "topTypeId": 4,
                        "updateTime": "2021-01-08 16:11:44",
                        "uuid": "6a4f5943fb19493b9e55582f5f44724b",
                        "valid": true
                      }
                  ],
                "key":"type"
            }
        ],
        "message":"success",
        "versn":"1.0"
    })
}

const learningFieldFetch = () => {
    return Mock.mock({
        "code":"0",
        "data":{
            "content": "<p>测试取证内容情况摘要</p>",
            "createTime": "2021-01-08 16:41:42",
            "type": 2002,
            "status": 0,
            "id": 1,
            "clickVolume": 20,
            "updateTime": "2021-01-08 16:50:07",
            "picUrl": "https://ss3.bdstatic.com/70cFv8Sh_Q1YnxGkpoWK1HF6hhy/it/u=1092625551,3794324668&fm=26&gp=0.jpg",
            "contentText": "测试取证内容情况摘要",
            "uuid": "e1725b256efd477690b1c6ef25fde8b7",
            "valid": true
        },
        "message":"success",
        "versn":"1.0"
    })
}

const noticePage = () => {
    return Mock.mock({
        "code":"0",
        "data":{
            "data": [
                {
                  "content": "<p>出差</p>\r\n",
                  "contentText": "出差\r\n",
                  "createTime": "2021-01-08 15:28:30",
                  "id": 2,
                  "isReading": 2,
                  "isTiming": 2,
                  "orgName": "宣和社区",
                  "publishTime": "2021-01-08",
                  "status": 2,
                  "title": "测试",
                  "updateTime": "2021-01-08 16:50:00",
                  "uuid": "83d63dc787404e1994ea9e28b7e11996",
                  "valid": false
                },
                {
                  "content": "<p>dede</p>\r\n",
                  "contentText": "dede\r\n",
                  "createTime": "2021-01-07 17:22:27",
                  "id": 1,
                  "isReading": 2,
                  "isTiming": 1,
                  "orgName": "宣和社区",
                  "publishTime": "2021-01-08",
                  "status": 0,
                  "title": "测试",
                  "updateTime": "2021-01-08 15:32:02",
                  "uuid": "5ade9c3dc4f249c49875bab4474d2d53",
                  "valid": true
                }
              ],
              "distinct": false,
              "draw": 0,
              "groupOp": "AND",
              "lastPage": true,
              "length": 10,
              "mapUnderscoreToCamelCase": false,
              "orderby": {
                "order": "desc",
                "orderBySetted": true,
                "orderDir": "desc",
                "orderField": "id",
                "orderby": "id"
              },
              "pageNum": 1,
              "recordsFiltered": 2,
              "recordsTotal": 2,
              "start": 0
        },
        "message":"success",
        "versn":"1.0"
    })
}


const scoreAccountFetch = () => {
    return Mock.mock({
        "code":"0",
        "data":{
            "areaId":816,
            "areaName":"取证鉴定中心",
            "balance":0,
            "createTime":"2021-01-13 10:34:29",
            "foDatas":[
                {
                    "name":"forensics1",
                    "value":2
                },
                {
                    "name":"forensics2",
                    "value":0
                },
                {
                    "name":"forensics3",
                    "value":0
                },
                {
                    "name":"forensics4",
                    "value":0
                }
            ],
            "id":37,
            "job":"取证专员",
            "jobNo":"3702001",
            "lastFoNum":0,
            "lastQaNum":0,
            "levelName":"普通取证员",
            "mobile":"123433333333334",
            "month":1,
            "monthTotal":0,
            "position":"取证员",
            "qaDatas":[
                {
                    "name":"question",
                    "value":3
                },
                {
                    "name":"answer",
                    "value":12
                }
            ],
            "sex":"M",
            "status":0,
            "total":0,
            "updateTime":"2021-01-13 10:34:29",
            "userId":192,
            "userName":"测试专员3",
            "uuid":"fe4812e6eeac4beaa8d58d2218c7fca9",
            "valid":true,
            "year":2021,
            "yearTotal":0
        },
        "message":"success",
        "versn":"1.0"
    })
}

const scoreAccountPage = () => {
    return Mock.mock({
        "code":"0",
        "data":{
            "data|10":[
                {
                    "content": "<p>测试取证内容情况摘要</p>",
                    "createTime": "2021-01-08 16:41:42",
                    "type": 2002,
                    "status": 0,
                    "title": "测试",
                    "id": 1,
                    "clickVolume": 20,
                    "updateTime": "2021-01-08 16:50:07",
                    "picUrl": "https://ss3.bdstatic.com/70cFv8Sh_Q1YnxGkpoWK1HF6hhy/it/u=1092625551,3794324668&fm=26&gp=0.jpg",
                    "contentText": "测试取证内容情况摘要",
                    "uuid": "e1725b256efd477690b1c6ef25fde8b7",
                    "valid": true
                  }
            ],
            "distinct":false,
            "draw":0,
            "groupOp":"AND",
            "lastPage":true,
            "length":20,
            "mapUnderscoreToCamelCase":false,
            "pageNum":1,
            "recordsFiltered":2,
            "recordsTotal":2,
            "rules":[
                {
                    "compareValue":true,
                    "field":"isForensics",
                    "op":"eq",
                    "operater":"=",
                    "value":true
                }
            ],
            "start":0
        },
        "message":"success",
        "versn":"1.0"
    })
}

const getImgs = () =>{
    return Mock.mock({
        "code":"0",
        "data":[
            {
                "appId":50,
                "appName":"lac_app_fmsm",
                "ckeditorFile":0,
                "ckeditorFileStr":"否",
                "createTime":"2021-01-12 09:44:47",
                "fileType":1,
                "fileTypeStr":"图片",
                "icon":"fa-file-text-o",
                "id":3084,
                "mimeType":"image/png",
                "objectId":"68d1c1e9667d99a337440be6036ef366",
                "objectType":1,
                "path":"http://jy.mzlink.net/sfiles/50/2021/01/12/6e6475a2f3d84397885ec42db48c91b7.png",
                "realName":"articles.png",
                "size":38233,
                "status":0,
                "updateTime":"2021-01-12 09:44:47",
                "uuid":"6e6475a2f3d84397885ec42db48c91b7",
                "valid":true
            },
            {
                "appId":50,
                "appName":"lac_app_fmsm",
                "ckeditorFile":0,
                "ckeditorFileStr":"否",
                "createTime":"2021-01-12 09:44:50",
                "fileType":1,
                "fileTypeStr":"图片",
                "icon":"fa-file-text-o",
                "id":3085,
                "mimeType":"image/png",
                "objectId":"68d1c1e9667d99a337440be6036ef366",
                "objectType":1,
                "path":"http://jy.mzlink.net/sfiles/50/2021/01/12/8b6c7bdf58664601820f9e4d3fd42eae.png",
                "realName":"diaocha.png",
                "size":42626,
                "status":0,
                "updateTime":"2021-01-12 09:44:50",
                "uuid":"8b6c7bdf58664601820f9e4d3fd42eae",
                "valid":true
            }
        ],
        "message":""
    })
}

const areaList = () => {
    return Mock.mock({
        "code":"0",
        "data":[
            {
                "code":"1346-1347-",
                "createTime":"2018-09-06 14:51:23",
                "fullName":"山东省济南市",
                "govCode":"3701",
                "id":1347,
                "level":2,
                "name":"济南市",
                "parentId":1346,
                "sort":1446,
                "status":0,
                "topParent":false,
                "type":0,
                "updateTime":"2018-09-06 14:51:23",
                "uuid":"857413e32966408facf20ee7423b68c4",
                "valid":true
            },
            {
                "code":"1346-1358-",
                "createTime":"2018-09-06 14:51:23",
                "fullName":"山东省青岛市",
                "govCode":"3702",
                "id":1358,
                "level":2,
                "name":"青岛市",
                "parentId":1346,
                "sort":1457,
                "status":0,
                "topParent":false,
                "type":0,
                "updateTime":"2018-09-06 14:51:23",
                "uuid":"e3be15b59deb49858835b42afda79e2c",
                "valid":true
            },
            {
                "code":"1346-1369-",
                "createTime":"2018-09-06 14:51:23",
                "fullName":"山东省淄博市",
                "govCode":"3703",
                "id":1369,
                "level":2,
                "name":"淄博市",
                "parentId":1346,
                "sort":1468,
                "status":0,
                "topParent":false,
                "type":0,
                "updateTime":"2018-09-06 14:51:23",
                "uuid":"e9c253f1adc34494b141ef6e0dc7abad",
                "valid":true
            },
            {
                "code":"1346-1378-",
                "createTime":"2018-09-06 14:51:23",
                "fullName":"山东省枣庄市",
                "govCode":"3704",
                "id":1378,
                "level":2,
                "name":"枣庄市",
                "parentId":1346,
                "sort":1477,
                "status":0,
                "topParent":false,
                "type":0,
                "updateTime":"2018-09-06 14:51:23",
                "uuid":"8b56590df3d844c29e8188dec281be10",
                "valid":true
            },
            {
                "code":"1346-1385-",
                "createTime":"2018-09-06 14:51:23",
                "fullName":"山东省东营市",
                "govCode":"3705",
                "id":1385,
                "level":2,
                "name":"东营市",
                "parentId":1346,
                "sort":1484,
                "status":0,
                "topParent":false,
                "type":0,
                "updateTime":"2018-09-06 14:51:23",
                "uuid":"92867224c14b418ba4441ba295c9f971",
                "valid":true
            },
            {
                "code":"1346-1391-",
                "createTime":"2018-09-06 14:51:24",
                "fullName":"山东省烟台市",
                "govCode":"3706",
                "id":1391,
                "level":2,
                "name":"烟台市",
                "parentId":1346,
                "sort":1490,
                "status":0,
                "topParent":false,
                "type":0,
                "updateTime":"2018-09-06 14:51:24",
                "uuid":"42f58cf63efc426b8f58f11055535393",
                "valid":true
            },
            {
                "code":"1346-1404-",
                "createTime":"2018-09-06 14:51:24",
                "fullName":"山东省潍坊市",
                "govCode":"3707",
                "id":1404,
                "level":2,
                "name":"潍坊市",
                "parentId":1346,
                "sort":1503,
                "status":0,
                "topParent":false,
                "type":0,
                "updateTime":"2018-09-06 14:51:24",
                "uuid":"03c72a67b96d4e3cb094f411210a77c7",
                "valid":true
            },
            {
                "code":"1346-1417-",
                "createTime":"2018-09-06 14:51:24",
                "fullName":"山东省济宁市",
                "govCode":"3708",
                "id":1417,
                "level":2,
                "name":"济宁市",
                "parentId":1346,
                "sort":1516,
                "status":0,
                "topParent":false,
                "type":0,
                "updateTime":"2018-09-06 14:51:24",
                "uuid":"8e2b8097710e4873a924ad2096e621d4",
                "valid":true
            },
            {
                "code":"1346-1429-",
                "createTime":"2018-09-06 14:51:24",
                "fullName":"山东省泰安市",
                "govCode":"3709",
                "id":1429,
                "level":2,
                "name":"泰安市",
                "parentId":1346,
                "sort":1528,
                "status":0,
                "topParent":false,
                "type":0,
                "updateTime":"2018-09-06 14:51:24",
                "uuid":"3a977d917bbc4266aaa68995070d626b",
                "valid":true
            },
            {
                "code":"1346-1436-",
                "createTime":"2018-09-06 14:51:24",
                "fullName":"山东省威海市",
                "govCode":"3710",
                "id":1436,
                "level":2,
                "name":"威海市",
                "parentId":1346,
                "sort":1535,
                "status":0,
                "topParent":false,
                "type":0,
                "updateTime":"2018-09-06 14:51:24",
                "uuid":"5268c42d52154b268072bda5cac8f440",
                "valid":true
            },
            {
                "code":"1346-1441-",
                "createTime":"2018-09-06 14:51:24",
                "fullName":"山东省日照市",
                "govCode":"3711",
                "id":1441,
                "level":2,
                "name":"日照市",
                "parentId":1346,
                "sort":1540,
                "status":0,
                "topParent":false,
                "type":0,
                "updateTime":"2018-09-06 14:51:24",
                "uuid":"cd5a89c88e2d4777a7cbfd54fdf1e524",
                "valid":true
            },
            {
                "code":"1346-1446-",
                "createTime":"2018-09-06 14:51:24",
                "fullName":"山东省莱芜市",
                "govCode":"3712",
                "id":1446,
                "level":2,
                "name":"莱芜市",
                "parentId":1346,
                "sort":1545,
                "status":0,
                "topParent":false,
                "type":0,
                "updateTime":"2018-09-06 14:51:24",
                "uuid":"ed174d9cd34b409bb18a5a45b2b1b836",
                "valid":true
            },
            {
                "code":"1346-1449-",
                "createTime":"2018-09-06 14:51:24",
                "fullName":"山东省临沂市",
                "govCode":"3713",
                "id":1449,
                "level":2,
                "name":"临沂市",
                "parentId":1346,
                "sort":1548,
                "status":0,
                "topParent":false,
                "type":0,
                "updateTime":"2018-09-06 14:51:24",
                "uuid":"615480fe1bcb4972abe208aebccb9cc5",
                "valid":true
            },
            {
                "code":"1346-1462-",
                "createTime":"2018-09-06 14:51:24",
                "fullName":"山东省德州市",
                "govCode":"3714",
                "id":1462,
                "level":2,
                "name":"德州市",
                "parentId":1346,
                "sort":1561,
                "status":0,
                "topParent":false,
                "type":0,
                "updateTime":"2018-09-06 14:51:24",
                "uuid":"3e50d09da34b42789679ae71b2888e6f",
                "valid":true
            },
            {
                "code":"1346-1474-",
                "createTime":"2018-09-06 14:51:24",
                "fullName":"山东省聊城市",
                "govCode":"3715",
                "id":1474,
                "level":2,
                "name":"聊城市",
                "parentId":1346,
                "sort":1573,
                "status":0,
                "topParent":false,
                "type":0,
                "updateTime":"2018-09-06 14:51:24",
                "uuid":"962ff300943c4d218e2365bd4b6b71bb",
                "valid":true
            },
            {
                "code":"1346-1483-",
                "createTime":"2018-09-06 14:51:25",
                "fullName":"山东省滨州市",
                "govCode":"3716",
                "id":1483,
                "level":2,
                "name":"滨州市",
                "parentId":1346,
                "sort":1582,
                "status":0,
                "topParent":false,
                "type":0,
                "updateTime":"2018-09-06 14:51:25",
                "uuid":"908319a9ba414ca694b1542ca438664a",
                "valid":true
            },
            {
                "code":"1346-1491-",
                "createTime":"2018-09-06 14:51:25",
                "fullName":"山东省菏泽市",
                "govCode":"3717",
                "id":1491,
                "level":2,
                "name":"菏泽市",
                "parentId":1346,
                "sort":1590,
                "status":0,
                "topParent":false,
                "type":0,
                "updateTime":"2018-09-06 14:51:25",
                "uuid":"f0cf1e3968894a8faa6907aab8b2c519",
                "valid":true
            }
        ],
        "message":"success",
        "versn":"1.0"
    })
}


const statistics4area = () => {
    return Mock.mock({
        "code":"0",
        "data":[
            {
                "name":"山东省",
                "value":[0,0,0,1]
            },
            {
                "name":"济南市",
                "value":[0,4,0,3]
            }
        ],
        "message":"success",
        "versn":"1.0"
    })
}


const statistics4trend = () => {
    return Mock.mock({
        "code":"0",
        "data":[
            {
                "name":"2021-01-07",
                "value":[1,1]
            },
            {
                "name":"2021-01-08",
                "value":[1,1]
            },
            {
                "name":"2021-01-09",
                "value":[0,0]
            },
            {
                "name":"2021-01-10",
                "value":[0,0]
            },
            {
                "name":"2021-01-11",
                "value":[0,4]
            },
            {
                "name":"2021-01-12",
                "value":[2,2]
            },
            {
                "name":"2021-01-13",
                "value":[0,0]
            }
        ],
        "message":"success",
        "versn":"1.0"
    })
}

Mock.mock('/api/login', 'post', login);//登录
Mock.mock('/api/logout', 'get', logout);//登出
Mock.mock('/api/face/YwUser/me', 'post', me)//获取当前登录用户
Mock.mock('/api/face/Forensics/page', 'post', forensicsPage);//取证记录
Mock.mock('/api/face/Forensics/forensicsDict', 'post', forensicsDict);//取证字典序
Mock.mock('/api/face/Forensics/fetch', 'post', forensicsFetch);//取证详情
Mock.mock('/api/face/Authorization/page', 'post', authorizationPage);//授权记录
Mock.mock('/api/face/EvidenceReport/page', 'post', evidenceReportPage);//出证记录
Mock.mock('/api/face/Forensics/save', 'post', forensicsSave);//保存取证
Mock.mock('/api/face/Forensics/delOneUrl', 'post', delOneUrl);//删除一条取证网页记录

Mock.mock('/api/face/QuestionManage/list', 'post', questonList);//首页技术讨论区列表
Mock.mock('/api/face/QuestionManage/page', 'post', questionPage);//技术讨论区全部问答
Mock.mock('/api/face/QuestionManage/save', 'post', questionSave);//技术讨论区我要提问
Mock.mock('/api/face/QuestionManage/fetch', 'post', questionDetail);//技术讨论区详情

Mock.mock('/api/face/LearningField/page', 'post', learningFieldPage);//学习园地
Mock.mock('/api/face/LearningField/learningFieldDict', 'post', learningFieldDict);//学习园地字典序
Mock.mock('/api/face/LearningField/fetch', 'post', learningFieldFetch);//学习园地详情

Mock.mock('/api/face/Notice/page', 'post', noticePage);//公告
//Mock.mock('/api/face/Notice/noticeDict', 'post', noticeDict);//学习园地字典序
//Mock.mock('/api/face/Notice/fetch', 'post', noticeFetch);//公告详情

Mock.mock('/api/face/UserScoreAccount/fetch', 'post', scoreAccountFetch);//用户中心
Mock.mock('/api/face/UserScoreAccount/page', 'post', scoreAccountPage);  //积分明细	

Mock.mock('/api/pub/Archive/gets4El', 'post', getImgs);//获取图片

Mock.mock('/api/face/Statistics/areaList', 'post', areaList);//区域list
Mock.mock('/api/face/Statistics/statistics4area', 'post', statistics4area);//首页统计图1
Mock.mock('/api/face/Statistics/statistics4trend', 'post', statistics4trend);//首页统计图2